package edu.uci.ics.xmlrpc.webserver;

import java.net.InetAddress;

import org.apache.xmlrpc.common.TypeConverterFactoryImpl;
import org.apache.xmlrpc.server.PropertyHandlerMapping;
import org.apache.xmlrpc.server.XmlRpcServer;
import org.apache.xmlrpc.server.XmlRpcServerConfigImpl;
import org.apache.xmlrpc.webserver.ServletWebServer;
import org.apache.xmlrpc.webserver.XmlRpcServlet;

public class ServletServer {
    private static final int port = 8081;

    public static void main(String[] args) throws Exception {
        XmlRpcServlet servlet = new Calculator();
        System.out.println("Starting server...");
        ServletWebServer webServer = new ServletWebServer(servlet, port);
        webServer.start();
        System.out.println("Server started");
    }
}
